package com.info.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class User {

    //后台输出日志，查看
    private static Logger log = LoggerFactory.getLogger(User.class);

    @RequestMapping("/hello")
    public String helloMvc() {
        log.debug("这是一个测试方法！前台访问地址成功了！");
        return "hello";
    }
}
